package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 组织班级成员申请表
 * </p>
 *
 * @author xiangyan
 * @since 2020-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrgClassApply extends Model<OrgClassApply> {

    private static final long serialVersionUID=1L;

    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 组织ID
     */
    private Integer orgId;

    /**
     * 班级ID
     */
    private Integer classId;

    /**
     * 成员ID
     */
    private Integer userId;

    /**
     * 申请时间
     */
    private Date applyTime;

    /**
     * 审核人
     */
    private Integer auditAdminId;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核备注
     */
    private String remark;

    /**
     * 状态 1 待审核 2同意  3拒绝
     */
    private Integer status;

    /**
     * 申请类型：1=后台导入；2=自助申请
     */
    private Integer applyType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
